from rest_framework.serializers import ModelSerializer
from rest_framework import serializers
from .models import *
#新闻序列化器
class JournalismSer(ModelSerializer):
    class Meta:
        model = Journalism
        fields = '__all__'
#广告序列化器
class AdvertisingSer(ModelSerializer):
    class Meta:
        model = Advertising
        fields = '__all__'

